#bx-game-bar {
    z-index: var(--bx-game-bar-z-index);
    position: fixed;
    bottom: 0;
    width: 40px;
    height: 90px;
    overflow: visible;
    cursor: pointer;

    > svg {
        display: none;
        pointer-events: none;
        position: absolute;
        height: 28px;
        margin-top: 16px;
    }

    @media (hover: hover) {
        &:hover {
            > svg {
                display: block;
            }
        }
    }

    .bx-game-bar-container {
        opacity: 0;
        position absolute;
        display: flex;
        overflow: hidden;
        background: #1a1b1ee8;
        box-shadow: 0px 0px 6px #1c1c1c;
        transition: opacity 0.1s ease-in;

        &.bx-show {
            opacity: 0.9;

            + svg {
                display: none !important;
            }
        }

        &.bx-hide {
            opacity: 0;
            pointer-events: none;
        }

        button {
            width: 60px;
            height: 60px;
            border-radius: 0;

            svg {
                width: 28px;
                height: 28px;
                transition: transform 0.08s ease 0s;
            }

            &:hover {
                border-radius: 0;
            }

            &:active {
                svg {
                    transform: scale(0.75);
                }
            }

            &.bx-activated {
                background-color: white;

                svg {
                    filter: invert(1);
                }
            }
        }

        /* Touch controller buttons */
        div[data-activated] {
            button {
                display: none;
            }
        }

        /* Show default button */
        div[data-activated='false'] {
            button:first-of-type {
                display: block;
            }
        }

        /* Show activated button */
        div[data-activated='true'] {
            button:last-of-type {
                display: block;
            }
        }
    }

    &[data-position="bottom-left"] {
        left: 0;
        direction: ltr;

        .bx-game-bar-container {
            border-radius: 0 10px 10px 0;
        }
    }

    &[data-position="bottom-right"] {
        right: 0;
        direction: rtl;

        .bx-game-bar-container {
            direction: ltr;
            border-radius: 10px 0 0 10px;
        }
    }
}
